package javaSE;

import java.security.PrivateKey;

public class Person {

    private int age;

    public void setAge(int age) {
        if (age<0 || age>148){
            System.out.println("年龄是不合法");
        }else {
            this.age = age;
        }


    }
}
